package com.tester.yaa.exam001.single;

/**
 * @Aduthor yinanan
 * @ClassName EarthTest
 * @Date 2022/12/5 10:56
 * @Description 测试类
 **/
public class EarthTest {

    public static void main(String[] args) {
        for (int i = 1; i <= 3; i++) {
            System.out.println("第" + i + "个地球创建中.......");
            Earth.getEarth();
        }
        Earth et1 = Earth.getEarth();
        Earth et2 = Earth.getEarth();
        Earth et3 = Earth.getEarth();
        System.out.println("问：三个地球是同一个吗？");
        System.out.println(et1);
        System.out.println(et2);
        System.out.println(et3);
        System.out.println("答：这三个地球是同一个。");
    }
}
